/**
 * Created with IntelliJ IDEA.
 * Description:
 * Date: 2024-01-18
 * Time:10:04
 */
abstract class Shape {
    int a;
    int b = 10;
    private double area;

    //抽象方法
    abstract public void draw();

    //可以在抽象类中实现普通方法
    public double getArea() {  //得到绘制的图形的面积
        return this.area;
    }
}